import { Jwt } from "@/models/auth/dto";

export const isAuth = (): boolean | Jwt => {
  const jwt: any = localStorage.getItem("jwt");
  try {
    const res = JSON.parse(jwt);
    return res;
  } catch (error) {
    return false;
  }
};
